package logCollect;

//定义trafficInfo类
public class trafficInfo {
    String ispname;
    String isptype;
    String ispid;
    String ispchannel;
    Double ispuptraffic;
    Double ispdowntraffic;
    Double ispusetraffic;
    String ViewContent;
    String ViewType;
    String ViewMan;
    String ViewArea;
    String ViewYear;
    String ViewScore;
    String ViewLan;
    String ispcompany;
    Boolean cooperate;
    String meal;
    Double mealtraffic;
    Double mealresiduetraffic;
//
//    public trafficInfo() {
//    }

    public trafficInfo(String ispname, String isptype, String ispid, String ispchannel, Double ispuptraffic, Double ispdowntraffic, Double ispusetraffic, String viewContent, String viewType, String viewMan, String viewArea, String viewYear, String viewScore, String viewLan, String ispcompany, Boolean cooperate, String meal, Double mealtraffic, Double mealresiduetraffic) {
        this.ispname = ispname;
        this.isptype = isptype;
        this.ispid = ispid;
        this.ispchannel = ispchannel;
        this.ispuptraffic = ispuptraffic;
        this.ispdowntraffic = ispdowntraffic;
        this.ispusetraffic = ispusetraffic;
        ViewContent = viewContent;
        ViewType = viewType;
        ViewMan = viewMan;
        ViewArea = viewArea;
        ViewYear = viewYear;
        ViewScore = viewScore;
        ViewLan = viewLan;
        this.ispcompany = ispcompany;
        this.cooperate = cooperate;
        this.meal = meal;
        this.mealtraffic = mealtraffic;
        this.mealresiduetraffic = mealresiduetraffic;
    }

    public String getIspname() {
        return ispname;
    }

    public void setIspname(String ispname) {
        this.ispname = ispname;
    }

    public String getIsptype() {
        return isptype;
    }

    public void setIsptype(String isptype) {
        this.isptype = isptype;
    }

    public String getIspid() {
        return ispid;
    }

    public void setIspid(String ispid) {
        this.ispid = ispid;
    }

    public String getIspchannel() {
        return ispchannel;
    }

    public void setIspchannel(String ispchannel) {
        this.ispchannel = ispchannel;
    }

    public Double getIspuptraffic() {
        return ispuptraffic;
    }

    public void setIspuptraffic(Double ispuptraffic) {
        this.ispuptraffic = ispuptraffic;
    }

    public Double getIspdowntraffic() {
        return ispdowntraffic;
    }

    public void setIspdowntraffic(Double ispdowntraffic) {
        this.ispdowntraffic = ispdowntraffic;
    }

    public Double getIspusetraffic() {
        return ispusetraffic;
    }

    public void setIspusetraffic(Double ispusetraffic) {
        this.ispusetraffic = ispusetraffic;
    }

    public String getViewContent() {
        return ViewContent;
    }

    public void setViewContent(String viewContent) {
        ViewContent = viewContent;
    }

    public String getViewType() {
        return ViewType;
    }

    public void setViewType(String viewType) {
        ViewType = viewType;
    }

    public String getViewMan() {
        return ViewMan;
    }

    public void setViewMan(String viewMan) {
        ViewMan = viewMan;
    }

    public String getViewArea() {
        return ViewArea;
    }

    public void setViewArea(String viewArea) {
        ViewArea = viewArea;
    }

    public String getViewYear() {
        return ViewYear;
    }

    public void setViewYear(String viewYear) {
        ViewYear = viewYear;
    }

    public String getViewScore() {
        return ViewScore;
    }

    public void setViewScore(String viewScore) {
        ViewScore = viewScore;
    }

    public String getViewLan() {
        return ViewLan;
    }

    public void setViewLan(String viewLan) {
        ViewLan = viewLan;
    }

    public String getIspcompany() {
        return ispcompany;
    }

    public void setIspcompany(String ispcompany) {
        this.ispcompany = ispcompany;
    }

    public Boolean getCooperate() {
        return cooperate;
    }

    public void setCooperate(Boolean cooperate) {
        this.cooperate = cooperate;
    }

    public String getMeal() {
        return meal;
    }

    public void setMeal(String meal) {
        this.meal = meal;
    }

    public Double getMealtraffic() {
        return mealtraffic;
    }

    public void setMealtraffic(Double mealtraffic) {
        this.mealtraffic = mealtraffic;
    }

    public Double getMealresiduetraffic() {
        return mealresiduetraffic;
    }

    public void setMealresiduetraffic(Double mealresiduetraffic) {
        this.mealresiduetraffic = mealresiduetraffic;
    }

    @Override
    public String toString() {
        return "{" +
                " \"ispname\":\"" + ispname + '\"' +
                ",\"isptype\":\"" + isptype + '\"' +
                ",\"ispid\":\"" + ispid + '\"' +
                ",\"ispchannel\":\"" + ispchannel + '\"' +
                ",\"ispuptraffic\":" + ispuptraffic +
                ",\"ispdowntraffic\":" + ispdowntraffic +
                ",\"ispusetraffic\":" + ispusetraffic +
                ",\"ViewContent\":\"" + ViewContent + '\"' +
                ",\"ViewType\":\"" + ViewType + '\"' +
                ",\"ViewMan\":\"" + ViewMan + '\"' +
                ",\"ViewArea\":\"" + ViewArea + '\"' +
                ",\"ViewYear\":\"" + ViewYear + '\"' +
                ",\"ViewScore\":\"" + ViewScore + '\"' +
                ",\"ViewLan\":\"" + ViewLan + '\"' +
                ",\"ispcompany\":\"" + ispcompany + '\"' +
                ",\"cooperate\":" + cooperate +
                ",\"meal\":\"" + meal + '\"' +
                ",\"mealtraffic\":" + mealtraffic +
                ",\"mealresiduetraffic\":" + mealresiduetraffic +
                '}';
    }
}
